import http from "@/utils/http";

/**
 * 查询商品详情
 * @returns 
 */
export function getGoodsDetail(id) {
    return http({
        url: '/goods',
        data: { id }
    })
}

/**
 * 同类推荐(也支持猜你喜欢)
 * @returns 
 */
export function getGoodsRelevant(id) {
    return http({
        url: '/goods/relevant',
        data: { id }
    })
}